package io.github.lee.jel.api

import io.github.lee.jel.global.di.http.HttpModule

object ApiModule {
    private val retrofit
        get() = HttpModule.provideRetrofit(HttpModule.provideOkHttp())


    fun userApi(): UserApi =
        retrofit.create(UserApi::class.java)

    fun playListApi(): PlayListApi =
        retrofit.create(PlayListApi::class.java)

    fun itemApi(): ItemApi =
        retrofit.create(ItemApi::class.java)

}